#include "../include/geometryCircle.hpp"
#include <stdexcept>

namespace geometry {

Circle::Circle(double radius) : radius_(radius) {
    if (radius_ <= 0) {
        throw std::invalid_argument("Radius must be positive.");
    }
}

double Circle::getArea() const {
    return M_PI * radius_ * radius_;
}

} // namespace geometry